package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yellow Docker
 * @since 2022-11-16
 */
@Getter
@Setter
  @TableName("c_order")
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("用户id")
      private String userId;

      @ApiModelProperty("订单编号")
      private String orderSn;

      @ApiModelProperty("提交时间")
      private Date createTime;

      @ApiModelProperty("订单状态：0->待付款；1->已付款；2->已完成；3->已关闭；4->无效订单")
      private Integer status;

      @ApiModelProperty("订单总金额")
      private BigDecimal totalAmount;

      @ApiModelProperty("订单类型：0->正常订单；1->秒杀订单")
      private Integer orderType;


}
